diff --git a/.github/workflows/build_push.yml b/.github/workflows/build_push.yml index c70ab96..05bb66d 100644 --- a/.github/workflows/build_push.yml +++ b/.github/workflows/build_push.yml @@ -17,9 +17,12 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image - run: docker build -t ghcr.io/gabrielpalmar/hivebox:$(cat version.txt) . + run: | + docker build -t ghcr.io/gabrielpalmar/hivebox:$(cat version.txt) . + docker tag ghcr.io/gabrielpalmar/hivebox:$(cat version.txt) ghcr.io/gabrielpalmar/hivebox:latest - name: Push Docker image to GHCR run: | echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin - docker push ghcr.io/gabrielpalmar/hivebox:$(cat version.txt) \ No newline at end of file + docker push ghcr.io/gabrielpalmar/hivebox:$(cat version.txt) + docker push ghcr.io/gabrielpalmar/hivebox:latest \ No newline at end of file diff --git a/k8s/deployment.yml b/k8s/deployment.yml index b78c095..2de7fec 100644 --- a/k8s/deployment.yml +++ b/k8s/deployment.yml @@ -23,7 +23,7 @@ spec: type: RuntimeDefault containers: - name: hivebox - image: ghcr.io/gabrielpalmar/hivebox:0.4.0@sha256:31dccc066ffd02ef65850ed8125fc2dadf0bd65958fb49bee0517e40afab2e1c + image: ghcr.io/gabrielpalmar/hivebox:0.5.0@sha256:81aa2e46d597ad24c0d25b5f0df9e48d0a0b7503eec060fafdde71be602662a6 ports: - containerPort: 5000 securityContext: