Skip to content

CD

CD #2

Workflow file for this run

name: CD
on: release
env:
REGISTRY: ghcr.io
IMAGE_NAME: ankama-launcher
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Clone repo
uses: actions/checkout@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PUSH_CONTAINER_TOKEN }}
- name: Build container
run: docker build -t ${{ env.IMAGE_NAME}}:latest -t ${{ env.IMAGE_NAME}}:${{ GITHUB_REF }} .

Check failure on line 24 in .github/workflows/CD.yml

View workflow run for this annotation

GitHub Actions / CD

Invalid workflow file

The workflow is not valid. .github/workflows/CD.yml (Line: 24, Col: 14): Unrecognized named-value: 'GITHUB_REF'. Located at position 1 within expression: GITHUB_REF .github/workflows/CD.yml (Line: 27, Col: 14): Unrecognized named-value: 'GITHUB_REF'. Located at position 1 within expression: GITHUB_REF
- name: Push container
run: |
docker push ${{ env.REGISTRY }}/${{ github.repository }}:latest
docker push ${{ env.REGISTRY }}/${{ github.repository }}:${{ GITHUB_REF }}