Skip to content

Commit

Permalink
feat(ci): always push dev containers
Browse files Browse the repository at this point in the history
  • Loading branch information
Darkness4 committed Nov 1, 2023
1 parent 26526cd commit d1043bf
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,6 @@ jobs:
endpoint: builders

- name: Login to GitHub Container Registry
if: startsWith(github.ref, 'refs/tags')
uses: docker/login-action@v3
with:
registry: ghcr.io
Expand All @@ -109,14 +108,16 @@ jobs:
echo "VERSION=$(echo ${GITHUB_REF#refs/*/})" >> $GITHUB_OUTPUT
echo "OCI_VERSION=$(echo ${GITHUB_REF#refs/*/} | sed 's/+/-/g' | sed -E 's/v(.*)/\1/g' )" >> $GITHUB_OUTPUT
- name: Build export
- name: Build and export dev
uses: docker/build-push-action@v5
if: ${{ ! startsWith(github.ref, 'refs/tags') }}
with:
file: Dockerfile.static
platforms: linux/amd64,linux/arm64,linux/riscv64
push: false
tags: darkness4/fc2-live-dl-go:latest
push: true
build-args: |
VERSION=dev
tags: |
ghcr.io/darkness4/fc2-live-dl-go:dev
cache-from: type=gha
cache-to: type=gha,mode=max

Expand All @@ -131,25 +132,10 @@ jobs:
VERSION=${{ steps.get_version.outputs.VERSION }}
tags: |
ghcr.io/darkness4/fc2-live-dl-go:latest
ghcr.io/darkness4/fc2-live-dl-go:dev
ghcr.io/darkness4/fc2-live-dl-go:${{ steps.get_version.outputs.OCI_VERSION }}
cache-from: type=gha
cache-to: type=gha,mode=max

- name: Build and export dev
if: github.event_name == 'workflow_dispatch'
uses: docker/build-push-action@v5
with:
file: Dockerfile.static
platforms: linux/amd64,linux/arm64,linux/riscv64
push: true
build-args: |
VERSION=dev
tags: |
ghcr.io/darkness4/fc2-live-dl-go:dev
cache-from: type=gha
cache-to: type=gha,mode=max

build-windows:
name: Test Build fc2-live-dl-go static windows binaries

Expand Down

0 comments on commit d1043bf

Please sign in to comment.