Skip to content

Commit

Permalink
testing 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonSmith committed Jun 12, 2024
1 parent 8cff77c commit 00f4edc
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/docker_push_backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,22 +84,22 @@ jobs:
# - name: Checkout repository
# uses: actions/checkout@v2

# - name: Extract metadata (tags, labels) for Docker
# id: meta
# uses: docker/metadata-action@v3
# with:
# images: ${{ vars.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ vars.REGISTRY }}/${{ env.IMAGE_NAME }}

# - name: Build Docker image
# run: |
# docker build -t ${{ env.IMAGE_NAME }} -f ./src/backend/Dockerfile .
- name: Build Docker image
run: |
docker build -t ${{ env.IMAGE_NAME }} -f ./src/backend/Dockerfile .
- name: Pull docker hello-world image
run: docker pull hello-world
# - name: Pull docker hello-world image
# run: docker pull hello-world

- name: Tag Docker image
run: |
docker tag hello-world ${{ vars.REGISTRY }}/hello-world
# - name: Tag Docker image
# run: |
# docker tag hello-world ${{ vars.REGISTRY }}/hello-world

# # Save the SA key to a file so that it can be used by the docker build
# - name: Save SA key to file
Expand All @@ -111,16 +111,16 @@ jobs:
# gcloud auth configure-docker --quiet
# docker login -u _json_key -p "$(cat /tmp/gcp_sa_key.json)" https://gcr.io

- name: Push Docker image
run: |
docker push ${{ vars.REGISTRY }}/hello-world
# - name: Tag Docker image
# run: |
# docker tag ${{ env.IMAGE_NAME }} ${{ steps.meta.outputs.tags }}

# - name: Push Docker image
# env:
# THE_TAGS: ${{ steps.meta.outputs.tags }}
# run: |
# docker push ${{ steps.meta.outputs.tags }}
# docker push ${{ vars.REGISTRY }}/hello-world

- name: Tag Docker image
run: |
docker tag ${{ env.IMAGE_NAME }} ${{ steps.meta.outputs.tags }}
- name: Push Docker image
env:
THE_TAGS: ${{ steps.meta.outputs.tags }}
run: |
docker push ${{ steps.meta.outputs.tags }}

0 comments on commit 00f4edc

Please sign in to comment.