Skip to content

buildx-8.0-14-16

buildx-8.0-14-16 #126

name: buildx-8.0-14-16
on:
schedule:
- cron: '22 2 * * 2'
push:
branches: master
jobs:
buildx:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Generate bake file
run: |
cat <<'EOF' > docker-bake.hcl
group "default" {
targets = [
"8_0-14",
"8_0-16",
]
}
target "default" {
context="."
dockerfile="Dockerfile"
platforms = [
"linux/amd64",
]
}
target "8_0-14" {
inherits=["default"]
tags = [
"16nsk/devcontainers:8.0-14",
]
args = {
PHP_VERSION="8.0",
NODE_VERSION="14"
}
}
target "8_0-16" {
inherits=["default"]
tags = [
"16nsk/devcontainers:8.0-16",
]
args = {
PHP_VERSION="8.0",
NODE_VERSION="16"
}
}
EOF
-
name: Build and push
uses: docker/bake-action@master
with:
push: true
files: docker-bake.hcl