Skip to content

wip

wip #71

Workflow file for this run

name: docker
on:
push:
branches:
- master
- develop
jobs:
publish_alpine_docker_hub:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v3
with:
file: .github/alpine.Dockerfile
push: true
tags: |
jbboehr/handlebars.c:latest
jbboehr/handlebars.c:alpine
publish_alpine_gh_pkg:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to GitHub Packages
uses: docker/build-push-action@v3
with:
file: .github/alpine.Dockerfile
push: true
tags: |
ghcr.io/jbboehr/handlebars.c/handlebarsc:latest
ghcr.io/jbboehr/handlebars.c/handlebarsc:alpine
publish_debian_docker_hub:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v3
with:
file: .github/debian.Dockerfile
push: true
tags: "jbboehr/handlebars.c:alpine"
publish_debian_gh_pkg:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to GitHub Packages
uses: docker/build-push-action@v3
with:
file: .github/debian.Dockerfile
push: true
tags: "ghcr.io/jbboehr/handlebars.c/handlebarsc:debian"
publish_fedora_docker_hub:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Publish to Docker Hub
uses: docker/build-push-action@v3
with:
file: .github/fedora.Dockerfile
push: true
tags: "jbboehr/handlebars.c:fedora"
publish_fedora_gh_pkgs:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to GitHub Packages
uses: docker/build-push-action@v3
with:
file: .github/fedora.Dockerfile
push: true
tags: "ghcr.io/jbboehr/handlebars.c/handlebarsc:fedora"