Update Dockerfiles and remove unnecessary files #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Container Release (Debian 11) | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "Dockerfile.debian-11" | |
- ".github/workflows/container-release-debian-11.yml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "Dockerfile.debian-11" | |
- ".github/workflows/container-release-debian-11.yml" | |
jobs: | |
build-test: | |
name: Container Test Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
run: docker build . --file Dockerfile.debian-11 | |
build-release: | |
name: Container Release | |
runs-on: ubuntu-latest | |
needs: build-test | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Packages Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
file: Dockerfile.debian-11 | |
tags: ghcr.io/hspaans/molecule-containers:debian-11 |