Skip to content

Commit

Permalink
Test pushing staging image to quay.io
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Mar 17, 2023
1 parent 17f5679 commit e93f801
Showing 1 changed file with 14 additions and 13 deletions.
27 changes: 14 additions & 13 deletions .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,26 @@ jobs:
test:
uses: ./.github/workflows/test.yml

dockerhub-release:
build-and-push:
runs-on: ubuntu-latest
needs: test

steps:
- uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@v2
- name: Build image
uses: redhat-actions/buildah-build@v2
with:
username: ${{ secrets.DOCKER_HUB_USER }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
image: kliksutin
tags: staging ${{ github.sha }}
containerfiles: |
./Dockerfile
- name: Build and push
uses: docker/build-push-action@v2
- name: Push to quay.io
uses: redhat-actions/push-to-registry@v2
with:
push: true
tags: toska/kliksutin:staging
build-args: |
BASE_PATH=/kliksutin
GIT_SHA=${{ github.sha }}
STAGING=true
image: ${{ steps.build-image.outputs.image }}
tags: ${{ steps.build-image.outputs.tags }}
registry: quay.io/toska
username: github+toska
password: ${{ secrets.QUAY_IO_TOKEN }}

0 comments on commit e93f801

Please sign in to comment.