Skip to content

Commit

Permalink
Change Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Trevor-Ultra committed Jun 26, 2023
1 parent 20fe9e4 commit 25a1e18
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,23 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v2
- name: Build Image
id: build-image
uses: redhat-actions/buildah-build@v2
with:
registry: "quay.io"
image: discord-uniq-roles-bot
tags: latest ${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Push To quay.io
id: push-to-quay
uses: redhat-actions/push-to-registry@v2
with:
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/ultraio
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: discord-uniq-roles-bot:latest

- name: Print image url
run: echo "Image pushed to ${{ steps.push-to-quay.outputs.registry-paths }}"

0 comments on commit 25a1e18

Please sign in to comment.