Skip to content

Commit

Permalink
ghcr release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pkieltyka committed Feb 15, 2024
1 parent 9c44659 commit 0230bf2
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Release tag

on:
push:
tags:
- "v*"

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Log into Github registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Docker build
run: |
docker build --build-arg VERSION=${GITHUB_REF##*/} -t ghcr.io/0xsequence/eiffel:${GITHUB_REF##*/} -t ghcr.io/0xsequence/eiffel:latest .
docker push ghcr.io/0xsequence/eiffel:${GITHUB_REF##*/}
docker push ghcr.io/0xsequence/eiffel:latest

0 comments on commit 0230bf2

Please sign in to comment.