pub: support omitting --; warn about uneven args #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker image | |
on: | |
push: | |
workflow_dispatch: | |
repository_dispatch: | |
jobs: | |
docker-image: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: docker build -f Dockerfile -t btwiuse/ufo:${{ github.sha }} . | |
name: docker build | |
- name: Login to Docker Hub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- run: docker push btwiuse/ufo:${{ github.sha }} | |
name: docker push | |
- run: | | |
docker tag btwiuse/ufo:${{ github.sha }} btwiuse/ufo | |
docker push btwiuse/ufo | |
if: github.ref == 'refs/heads/main' | |
name: docker push latest |