mirror of
https://github.com/sberk42/fritzbox_exporter.git
synced 2026-02-14 11:49:50 +00:00
Fixed load and push
This commit is contained in:
21
.github/workflows/container.yml
vendored
21
.github/workflows/container.yml
vendored
@@ -122,19 +122,22 @@ jobs:
|
||||
name: docker-image
|
||||
path: /tmp
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
- name: Install skopeo
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y skopeo
|
||||
|
||||
- name: Log into registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | skopeo login ghcr.io -u ${{ github.actor }} --password-stdin
|
||||
|
||||
- name: Load and Push Image
|
||||
- name: Push OCI image to registry
|
||||
run: |
|
||||
docker load --input /tmp/image.tar
|
||||
docker tag $(docker images -q | head -n1) ${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ needs.prepare.outputs.DOCKER_TAG }}
|
||||
docker tag $(docker images -q | head -n1) ${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ github.sha }}
|
||||
docker push ${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ needs.prepare.outputs.DOCKER_TAG }}
|
||||
docker push ${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ github.sha }}
|
||||
skopeo copy \
|
||||
oci-archive:/tmp/image.tar \
|
||||
docker://${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ needs.prepare.outputs.DOCKER_TAG }}
|
||||
skopeo copy \
|
||||
oci-archive:/tmp/image.tar \
|
||||
docker://${{ needs.prepare.outputs.DOCKER_REPOSITORY }}:${{ github.sha }}
|
||||
|
||||
- name: Inspect image
|
||||
if: success()
|
||||
|
||||
Reference in New Issue
Block a user