Skip to content

fix: use explicit tag for push #3

fix: use explicit tag for push

fix: use explicit tag for push #3

Workflow file for this run

---
name: Docker
on:
push:
tags: [ 'v*.*.*' ]
jobs:
buildx:
name: Build container
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up emulation
uses: docker/setup-qemu-action@v3
- name: Set up buildx command
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# - name: Build container (latest)
# if: ${{ github.ref == 'refs/heads/master' }}
# run: 'docker buildx build --push -t mesosphere/ghostunnel:latest --platform linux/amd64,linux/arm64,linux/arm/v7 .'
- name: Build container (tagged)
if: ${{ github.ref != 'refs/heads/master' }}
run: 'docker buildx build --push -t mesosphere/ghostunnel:${{ github.ref_name }} --platform linux/amd64,linux/arm64,linux/arm/v7 .'