v0.1.4 #5
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: release | |
on: | |
release: # Docs: <https://help.github.com/en/articles/events-that-trigger-workflows#release-event-release> | |
types: | |
- released | |
- prereleased | |
jobs: | |
docker: | |
name: Build docker image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 # Action page: <https://github.com/docker/setup-qemu-action> | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 # Action page: <https://github.com/docker/setup-buildx-action> | |
- name: Login to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKERHUB_LOGIN }} | |
password: ${{ secrets.DOCKERHUB_PASSWORD }} | |
- name: Generate builder values | |
id: values | |
run: | | |
echo "version_full=$(echo ${GITHUB_REF##*/} | sed -e 's/^[vV ]*//')" >> $GITHUB_OUTPUT | |
echo "timestamp=$(echo $(date +%FT%T%z))" >> $GITHUB_OUTPUT | |
- name: Build image | |
uses: docker/build-push-action@v4 # Action page: <https://github.com/docker/build-push-action> | |
with: | |
context: . | |
file: Dockerfile | |
push: true | |
platforms: linux/amd64,linux/arm64 | |
build-args: | | |
APP_VERSION=${{ steps.values.outputs.version_full}} | |
BUILD_TIME=${{ steps.values.outputs.timestamp }} | |
tags: | | |
artarts36/sentry-notifier:${{ steps.values.outputs.version_full}} |