Skip to content

Commit

Permalink
message
Browse files Browse the repository at this point in the history
  • Loading branch information
Feinburger committed May 2, 2024
1 parent 617481f commit 28f16e0
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/push-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ on:
- main

env:
IMAGE_NAME_1: automatic-dns-failover
IMAGE_NAME_1: automatic-dns-failover
IMAGE_NAME_2: custom-nginx
IMAGE_REPOSITORY: ${{github.repository}}
IMAGE_REGISTRY: ghcr.io
REGISTRY_USER: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ github.token }}
Expand All @@ -34,14 +35,14 @@ jobs:
id: meta1
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME_1 }}
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPOSITORY }}/${{ env.IMAGE_NAME_1 }}

- name: Extract metadata (tags, labels) for the custom-nginx Docker image
id: meta2
uses: docker/metadata-action@c4ee3adeed93b1fa6a762f209fb01608c1a22f1e
with:
images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME_2 }}

images: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_REPOSITORY }}/${{ env.IMAGE_NAME_2 }}
- name: Build and push automatic-dns-failover image
uses: docker/build-push-action@91df6b874e498451163feb47610c87c4a218c1ee
with:
Expand All @@ -51,7 +52,7 @@ jobs:
DOCKER_METADATA_OUTPUT_JSON
tags: ${{ steps.meta1.outputs.tags }}
labels: ${{ steps.meta1.outputs.labels }}

- name: Build and push custom-nginx image
uses: docker/build-push-action@91df6b874e498451163feb47610c87c4a218c1ee
with:
Expand Down

0 comments on commit 28f16e0

Please sign in to comment.