Skip to content

fix: artifact downloading #56

fix: artifact downloading

fix: artifact downloading #56

Workflow file for this run

on: [push]
name: Build and Release
jobs:
ship:
runs-on: ubuntu-latest
permissions:
packages: write
env:
REGISTRY: ghcr.io
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
sparse-checkout: |
env/nginx/
Dockerfile
- name: Log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: 0.5.3 Release
search_artifacts: true
- name: Extract build artifacts
run: tar -xzvf ./release-0.5.3.tar.gz
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: ${{ env.REGISTRY }}/${{ github.repository }}:0.5.3