diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml new file mode 100644 index 0000000000..7548c2c79a --- /dev/null +++ b/.github/workflows/publish-release.yaml @@ -0,0 +1,29 @@ +name: Publish release + +# Run the tasks on every tag +on: + push: + tags: ["**"] + +# Publish images to GitHub packages +env: + REGISTRY: ghcr.io/stackhpc + TAG: ${{ github.ref_name }} + +jobs: + build_push_images: + name: Build and push images + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v2 + + - name: Login to GitHub Container Registry + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and push images + run: make push