Update env variable
Some checks failed
Main / build-and-push-docker-image (20.x) (pull_request) Failing after 16s
Some checks failed
Main / build-and-push-docker-image (20.x) (pull_request) Failing after 16s
This commit is contained in:
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -27,19 +27,19 @@ jobs:
|
|||||||
ansible-galaxy collection install ansible.posix --force
|
ansible-galaxy collection install ansible.posix --force
|
||||||
- name: "Enable Corepack"
|
- name: "Enable Corepack"
|
||||||
run: corepack enable
|
run: corepack enable
|
||||||
- name: Log into registry ${{ env.REGISTRY }}
|
- name: Log into registry ${{ env.HUB_USER }}
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.HUB_USER }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ env.HUB_USER }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.HUB_TOKEN }}
|
||||||
- name: "Setup Docker buildx"
|
- name: "Setup Docker buildx"
|
||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
- name: Extract Docker metadata
|
- name: Extract Docker metadata
|
||||||
id: meta
|
id: meta
|
||||||
uses: docker/metadata-action@v4
|
uses: docker/metadata-action@v4
|
||||||
with:
|
with:
|
||||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
images: ${{ env.HUB_USER }}/${{ env.IMAGE_NAME }}
|
||||||
- name: "Build and Push Versioned Docker Image"
|
- name: "Build and Push Versioned Docker Image"
|
||||||
id: build-and-push
|
id: build-and-push
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
@@ -56,5 +56,5 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
tags: ${{ env.HUB_USER }}/${{ env.IMAGE_NAME }}:latest
|
||||||
labels: ${{ steps.meta.outputs.labels }}
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
|
|||||||
Reference in New Issue
Block a user