Fix build #13
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: Publish on GHCR | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Logging into docker registry | |
run: echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin registry.bleumatin.fr | |
- name: Pulling image | |
run: docker pull registry.bleumatin.fr/talm/scrrap-lab:${GITHUB_SHA} | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Tagging to version | |
run: | | |
docker image tag registry.bleumatin.fr/talm/scrrap-lab:${GITHUB_SHA} ghcr.io/bleumatin-fr/scrrap-lab:${GITHUB_REF#refs/tags/} | |
docker image tag registry.bleumatin.fr/talm/scrrap-lab:${GITHUB_SHA} ghcr.io/bleumatin-fr/scrrap-lab:latest | |
- name: Pushing to GitHub Container Registry | |
run: docker push --all-tags ghcr.io/bleumatin-fr/scrrap-lab | |
# - name: Restarting | |
# run: |