Bump junit-report-builder from 3.0.1 to 3.1.0 in /formatter-junit #265
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: Publish Docker container image to Docker Hub | |
on: | |
push: | |
branches: | |
- next | |
tags: | |
- v* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
packages: write | |
steps: | |
- name: Checkout repository | |
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: Log in to registry | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
- name: Extract tags and labels | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ github.repository }} | |
- name: Build container image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: docker/Dockerfile | |
tags: local:test | |
labels: ${{ steps.meta.outputs.labels }} | |
load: true | |
- name: Test container image | |
run: docker run --rm -v $PWD:/workdir local:test "*.md" | |
- name: Push container image | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: docker/Dockerfile | |
platforms: linux/arm64,linux/amd64 | |
tags: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
push: true | |
- name: Extract tags and labels for -rules | |
id: meta-rules | |
uses: docker/metadata-action@v5 | |
with: | |
images: ${{ github.repository }}-rules | |
- name: Build and push container image for -rules | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
file: docker/Dockerfile-rules | |
platforms: linux/arm64,linux/amd64 | |
tags: ${{ steps.meta-rules.outputs.tags }} | |
labels: ${{ steps.meta-rules.outputs.labels }} | |
build-args: | | |
VERSION=${{ steps.meta.outputs.version }} | |
push: true |