Update CI file. Removed unneded files. #65
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@@ -27,19 +27,19 @@ jobs:
|
||||
ansible-galaxy collection install ansible.posix --force
|
||||
- name: "Enable Corepack"
|
||||
run: corepack enable
|
||||
- name: Log into registry ${{ env.REGISTRY }}
|
||||
- name: Log into registry ${{ env.HUB_USER }}
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: ${{ env.REGISTRY }}
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
registry: ${{ env.HUB_USER }}
|
||||
username: ${{ env.HUB_USER }}
|
||||
password: ${{ secrets.HUB_TOKEN }}
|
||||
- name: "Setup Docker buildx"
|
||||
uses: docker/setup-buildx-action@v2
|
||||
- name: Extract Docker metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v4
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
images: ${{ env.HUB_USER }}/${{ env.IMAGE_NAME }}
|
||||
- name: "Build and Push Versioned Docker Image"
|
||||
id: build-and-push
|
||||
uses: docker/build-push-action@v4
|
||||
@@ -56,5 +56,5 @@ jobs:
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
|
||||
tags: ${{ env.HUB_USER }}/${{ env.IMAGE_NAME }}:latest
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
|
||||
Reference in New Issue
Block a user