Merge pull request #3 from mesosphere/mh/fix-cve #2
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 | |
on: | |
push: | |
tags: [ 'v*.*.*' ] | |
jobs: | |
buildx: | |
name: Build container | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up emulation | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up buildx command | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
install: true | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
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:$(git describe --tags --abbrev=0) --platform linux/amd64,linux/arm64,linux/arm/v7 .' |