Skip to content

buildx-8.1-18

buildx-8.1-18 #59

name: buildx-8.1-18
on:
schedule:
- cron: '44 4 * * 4'
push:
branches: master
jobs:
buildx:
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
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_1-18"
]
}
target "default" {
context="."
dockerfile="Dockerfile"
platforms = [
"linux/arm64",
"linux/amd64",
]
}
target "8_1-18" {
inherits=["default"]
tags = [
"16nsk/devcontainers:latest",
"16nsk/devcontainers:8.1-18",
]
args = {
PHP_VERSION="8.1",
NODE_VERSION="18"
}
}
EOF
-
name: Build and push
uses: docker/bake-action@master
with:
push: true
files: docker-bake.hcl