successful automation of multi-platform docker builds
This commit is contained in:
parent
1b07a0fa48
commit
327b689924
1 changed files with 7 additions and 7 deletions
14
.github/workflows/docker-autobuild.yml
vendored
14
.github/workflows/docker-autobuild.yml
vendored
|
@ -2,10 +2,14 @@ name: Docker Image CI
|
||||||
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
|
env:
|
||||||
|
USERNAME: silentdigit
|
||||||
|
PROJECT: letsencrypt
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
buildx:
|
buildx:
|
||||||
name: Build Muilti-Platform Image and Upload to Docker Hub
|
name: Build Multi-Platform Image and Upload to Docker Hub
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
-
|
-
|
||||||
|
@ -39,13 +43,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
# Variables
|
# Variables
|
||||||
TAG=$(date +%y.%m)
|
TAG=$(date +%y.%m)
|
||||||
NAME=silentdigit/letsencrypt
|
|
||||||
|
|
||||||
#Login
|
#Login
|
||||||
docker login -u silentdigit -p ${DOCKER_TOKEN}
|
docker login -u ${USERNAME} -p ${DOCKER_TOKEN}
|
||||||
|
|
||||||
# Build image as TAG version
|
|
||||||
docker buildx build -t ${NAME}:${TAG} --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x --push .
|
|
||||||
|
|
||||||
# Build image as latest version
|
# Build image as latest version
|
||||||
docker buildx build -t ${NAME}:latest --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x --push .
|
docker buildx build -t ${USERNAME}/${PROJECT}:latest --platform=linux/386,linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/ppc64le,linux/s390x --push .
|
||||||
|
|
Loading…
Reference in a new issue