Skip to content

Commit

Permalink
Update test_inputs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
giohappy authored Oct 6, 2023
1 parent a4422d3 commit 60ba05d
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test_inputs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,22 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Send greeting
run: echo "Building ${{ github.event.inputs.image }} from branch ${{ github.event.inputs.branch }} (push ${{ fromJSON(github.event.inputs.push) }})"
- uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
file: ./docker/${{ github.event.inputs.image }}/Dockerfile
context: "./docker/${{ github.event.inputs.image }}/"
push: ${{fromJSON(github.event.inputs.push)}}
tags: giohappy/${{ github.event.inputs.image }}:${{ github.event.inputs.tag }}
- name: Final message
run: echo "Built ${{ github.event.inputs.image }} from branch ${{ github.event.inputs.branch }} (push ${{ fromJSON(github.event.inputs.push) }})"

0 comments on commit 60ba05d

Please sign in to comment.