Skip to content

Modern Docker Management, Designed for Everyone

ci/cd: update preview workflow

Kyle Mendell74685cae9dcf
diff --git a/.github/workflows/build-1.0-preview-image.yml b/.github/workflows/build-1.0-preview-image.yml
index 4a41e9274..53ac4c7de 100644
--- a/.github/workflows/build-1.0-preview-image.yml
+++ b/.github/workflows/build-1.0-preview-image.yml
@@ -9,20 +9,18 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
-env:
- REGISTRY: ghcr.io
- IMAGE_NAME: ${{ github.repository }}
-
jobs:
build-and-push:
- runs-on: ubuntu-latest
+ runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- - name: Checkout repository
+ - name: Checkout code
uses: actions/checkout@v4
+ with:
+ fetch-depth: 1
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
@@ -30,28 +28,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- - name: Log in to Container Registry
+ - name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
- registry: ${{ env.REGISTRY }}
+ registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- - name: Extract metadata
- id: meta
- uses: docker/metadata-action@v5
- with:
- images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- tags: |
- type=raw,value=1.0-preview
-
- name: Build and push Docker image
uses: docker/build-push-action@v6
with:
context: .
- platforms: linux/amd64,linux/arm64
push: true
- tags: ${{ steps.meta.outputs.tags }}
- labels: ${{ steps.meta.outputs.labels }}
+ tags: ghcr.io/ofkm/arcane:next
cache-from: type=gha
cache-to: type=gha,mode=max