Skip to content

Release/1.1 (#39)

Release/1.1 (#39) #24

name: Build and Push
on:
push:
branches:
- main
- release/1.1
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Build Docker Image
run: make build
- name: Login to GitHub Container Registry
run: echo ${{ secrets.REPOSITORY_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Get Repository name
run: echo USER_REPOSITORY=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]') >> $GITHUB_ENV
- name: Push Docker Image
run: |
docker tag qwik ghcr.io/${{ env.USER_REPOSITORY }}:latest
docker push ghcr.io/${{ env.USER_REPOSITORY }}:latest