From 10ccff5da979e2993ae1c24648edf6a730161b65 Mon Sep 17 00:00:00 2001 From: Bruno <15909838+thetoolsmith@users.noreply.github.com> Date: Thu, 26 Dec 2024 13:21:25 -0500 Subject: [PATCH] change latest to semantic versioning to make immutable --- .../workflows/build_and_publish_images.yml | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build_and_publish_images.yml b/.github/workflows/build_and_publish_images.yml index e2e632d..7bc0787 100644 --- a/.github/workflows/build_and_publish_images.yml +++ b/.github/workflows/build_and_publish_images.yml @@ -29,37 +29,37 @@ jobs: docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18_${{github.run_attempt}} -f Dockerfile-alpine . docker push ghcr.io/cfpb/regtech/sbl/alpine:3.18_${{github.run_attempt}} - docker build -t ghcr.io/cfpb/regtech/sbl/alpine:3.18 -f Dockerfile-alpine . - docker push ghcr.io/cfpb/regtech/sbl/alpine:3.18 + docker build -t ghcr.io/cfpb/regtech/sbl/alpine:v3.18.0 -f Dockerfile-alpine . + docker push ghcr.io/cfpb/regtech/sbl/alpine:v3.18.0 - name: 'Build and Publish python-alpine image' run: | docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12_${{github.run_attempt}} -f Dockerfile-python-alpine . docker push ghcr.io/cfpb/regtech/sbl/python-alpine:3.12_${{github.run_attempt}} - docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 -f Dockerfile-python-alpine . - docker push ghcr.io/cfpb/regtech/sbl/python-alpine:3.12 + docker build -t ghcr.io/cfpb/regtech/sbl/python-alpine:v3.12.0 -f Dockerfile-python-alpine . + docker push ghcr.io/cfpb/regtech/sbl/python-alpine:v3.12.0 - name: 'Build and Publish nginx-alpine image' run: | docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27_${{github.run_attempt}} -f Dockerfile-nginx-alpine . docker push ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27_${{github.run_attempt}} - docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 -f Dockerfile-nginx-alpine . - docker push ghcr.io/cfpb/regtech/sbl/nginx-alpine:1.27 + docker build -t ghcr.io/cfpb/regtech/sbl/nginx-alpine:v1.27.0 -f Dockerfile-nginx-alpine . + docker push ghcr.io/cfpb/regtech/sbl/nginx-alpine:v1.27.0 - name: 'Build and Publish node-js-alpine image' run: | docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20_${{github.run_attempt}} -f Dockerfile-node-js-alpine . docker push ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20_${{github.run_attempt}} - docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 -f Dockerfile-node-js-alpine . - docker push ghcr.io/cfpb/regtech/sbl/node-js-alpine:3.20 + docker build -t ghcr.io/cfpb/regtech/sbl/node-js-alpine:v3.20.0 -f Dockerfile-node-js-alpine . + docker push ghcr.io/cfpb/regtech/sbl/node-js-alpine:v3.20.0 - name: 'Build and Publish python-ubi8 image' run: | docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12_${{github.run_attempt}} -f Dockerfile-python-ubi8 . docker push ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12_${{github.run_attempt}} - docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 -f Dockerfile-python-ubi8 . - docker push ghcr.io/cfpb/regtech/sbl/python-ubi8:3.12 + docker build -t ghcr.io/cfpb/regtech/sbl/python-ubi8:v3.12.0 -f Dockerfile-python-ubi8 . + docker push ghcr.io/cfpb/regtech/sbl/python-ubi8:v3.12.0