Skip to content

Merge pull request #2 from tbmc/feature_add_response_links #34

Merge pull request #2 from tbmc/feature_add_response_links

Merge pull request #2 from tbmc/feature_add_response_links #34

Workflow file for this run

name: ci
on:
push:
branches:
- "main"
paths-ignore:
- 'docs'
- '**.md'
jobs:
build_and_publish_image:
permissions:
contents: read
packages: write
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get commit short
id: vars
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/tbmc/sporteasy-calendar-connector:latest
ghcr.io/tbmc/sporteasy-calendar-connector:${{ steps.vars.outputs.sha_short }}
tbmc/sporteasy-calendar-connector:latest
tbmc/sporteasy-calendar-connector:${{ steps.vars.outputs.sha_short }}