Docker Publish Multiarch Release #10
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 Publish Multiarch Release | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version number of new release' | |
required: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: install buildx | |
id: buildx | |
uses: crazy-max/ghaction-docker-buildx@v1 | |
- name: Log into registry | |
run: echo "${{ secrets.DOCKER_PW }}" | docker login -u ${{ secrets.DOCKER_USER }} --password-stdin | |
- name: Build and push image | |
run: docker buildx build --push --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VERSION="${{ github.event.inputs.version }}" --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --file Dockerfile --tag f0rc3/barcodebuddy:latest . | |
- name: Push image | |
run: docker buildx build --push --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` --build-arg VERSION="${{ github.event.inputs.version }}" --platform linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64 --file Dockerfile --tag f0rc3/barcodebuddy:${{ github.event.inputs.version }} . |