Skip to content

Commit

Permalink
passing docker image as artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwparent committed Dec 20, 2023
1 parent 5625afc commit bbbfbfb
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build-file.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Fetch mingw artifact
uses: actions/download-artifact@v3
with:
name: mingw-w64-image
path: /tmp
- name: Load image from artifact
run: |
docker load --input /tmp/mingw-w64-image.tar
- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/build-gpg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ jobs:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Fetch mingw artifact
uses: actions/download-artifact@v3
with:
name: mingw-w64-image
path: /tmp
- name: Load image from artifact
run: |
docker load --input /tmp/mingw-w64-image.tar
- name: Build and export to Docker
uses: docker/build-push-action@v5
with:
Expand Down
12 changes: 11 additions & 1 deletion .github/workflows/build-mingw.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
on:
workflow_call:

env:
REGISTRY: ghcr.io
IMAGE_NAME: mingw-w64

jobs:
build-mingw-w64:
Expand All @@ -16,4 +19,11 @@ jobs:
with:
context: .
file: Dockerfiles/mingw-w64/Dockerfile.mingw-w64
load: true
load: true
tags: ${{ env.REGISTRY }}/${{ github.repository_owner }}/windows-resource/${{ env.IMAGE_NAME }}:latest
outputs: dest=/tmp/mingw-w64.tar
- name: Upload Docker image to GH artifacts
uses: actions/upload-artifact@v2
with:
name: mingw-w64-image
path: /tmp

0 comments on commit bbbfbfb

Please sign in to comment.