github.com/kotalco/kotal@v0.3.0/.github/workflows/docker.yml (about) 1 name: Build-Push kotal 2 3 on: 4 push: 5 branches: [ master ] 6 tags: 7 - 'v*' 8 pull_request: 9 branches: [ master ] 10 11 jobs: 12 13 build: 14 15 runs-on: ubuntu-latest 16 17 steps: 18 - uses: actions/checkout@v2 19 20 - name: Generate Docker metadata 21 id: meta 22 uses: docker/metadata-action@v3 23 with: 24 images: | 25 docker.io/kotalco/kotal 26 tags: | 27 type=ref,event=tag 28 type=sha,prefix=,suffix=,format=short 29 flavor: | 30 latest=true 31 32 33 - name: Set up QEMU 34 uses: docker/setup-qemu-action@v2 35 36 - name: Set up Docker Buildx 37 uses: docker/setup-buildx-action@v1 38 39 - name: Login to DockerHub 40 uses: docker/login-action@v2 41 with: 42 username: kotalco 43 password: ${{ secrets.DOCKERHUB_PASSWORD }} 44 45 - name: Build and push 46 uses: docker/build-push-action@v3 47 with: 48 context: . 49 push: true 50 tags: ${{ steps.meta.outputs.tags }} 51 labels: ${{ steps.meta.outputs.labels }}