diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 249c2bd..a0c331e 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -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 }}"