-
-
Notifications
You must be signed in to change notification settings - Fork 16
27 lines (21 loc) · 1.12 KB
/
docker-publish-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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 }} .