Skip to content

Commit

Permalink
Added github worflow for release image
Browse files Browse the repository at this point in the history
  • Loading branch information
nitrosx committed Nov 9, 2022
1 parent a669b2f commit 05e3bd4
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/main-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Main Release

on:
release:
types: [published]

jobs:
test:
name: Publish image to ghcr on release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

# - name: test
# run: |
# cp CI/ESS/docker-compose.gitlab.yaml docker-compose.yaml
# docker-compose down --remove-orphans
# docker-compose pull
# docker-compose up --build --exit-code-from scicat-backend
# docker-compose down

- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/scicatproject/backend-next:${{ github.event.release.tag_name }},ghcr.io/scicatproject/backend-next:latest-release,ghcr.io/scicatproject/backend-next:alfa-stable

0 comments on commit 05e3bd4

Please sign in to comment.