Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
nolte committed Sep 30, 2023
1 parent 2d619e4 commit df13790
Showing 1 changed file with 31 additions and 33 deletions.
64 changes: 31 additions & 33 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
with:
context: ./images/commons/.
tags: ghcr.io/nolte/vscode-devcontainers/commons:${{ needs.prepare.outputs.image_tag }}
outputs: type=docker,dest=/tmp/commons.tar
# outputs: type=docker,dest=/tmp/commons.tar


push: true
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: commons
path: /tmp/commons.tar
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
# name: commons
# path: /tmp/commons.tar



Expand All @@ -67,14 +67,14 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Download artifact
uses: actions/download-artifact@v3
with:
name: commons
path: /tmp
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: commons
# path: /tmp
- name: Load image
run: |
# docker buildx use default
Expand Down Expand Up @@ -110,24 +110,22 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: commons
path: /tmp
- name: Load image
run: |
docker load --input /tmp/commons.tar
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: commons
# path: /tmp
# - name: Load image
# run: |
# docker load --input /tmp/commons.tar

- name: Push to GitHub Packages
uses: docker/build-push-action@v5.0.0
with:
context: ./images/commons-golang/.
tags: ghcr.io/nolte/vscode-devcontainers/commons-golang:${{ needs.prepare.outputs.image_tag }}
outputs: type=docker,dest=/tmp/commons-golang.tar
build-args: FROM_IMAGE_VERSION=${{ needs.prepare.outputs.image_tag }}


#outputs: type=docker,dest=/tmp/commons-golang.tar
build-args: FROM_IMAGE_VERSION=${{ needs.prepare.outputs.image_tag }}
push: true
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand All @@ -149,14 +147,14 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: commons-golang
path: /tmp
- name: Load image
run: |
docker load --input /tmp/commons-golang.tar
# - name: Download artifact
# uses: actions/download-artifact@v3
# with:
# name: commons-golang
# path: /tmp
# - name: Load image
# run: |
# docker load --input /tmp/commons-golang.tar

- name: Push to GitHub Packages
uses: docker/build-push-action@v5.0.0
Expand Down

0 comments on commit df13790

Please sign in to comment.