Skip to content

ci: bump docker/build-push-action from 5 to 6 (#17) #61

ci: bump docker/build-push-action from 5 to 6 (#17)

ci: bump docker/build-push-action from 5 to 6 (#17) #61

name: Publish Docker Image
on:
push:
branches:
- main
paths:
- ".github/workflows/publish_docker.yml"
- "templates/**"
- "Dockerfile"
schedule:
# on the 1st and 15th of every month
- cron: "0 0 1,15 * *"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
include:
- image: gitpod/workspace-base:latest
tags: nateateteen/zshpod:base
min: no
- image: gitpod/workspace-full:latest
tags: nateateteen/zshpod:full,nateateteen/zshpod:latest
min: no
- image: gitpod/workspace-base:latest
tags: nateateteen/zshpod:base-min
min: yes
- image: gitpod/workspace-full:latest
tags: nateateteen/zshpod:full-min
min: yes
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
build-args: |
IMAGE_NAME=${{ matrix.image }}
MIN=${{ matrix.min }}
push: true
tags: ${{ matrix.tags }}