diff options
| author | seth <[email protected]> | 2023-11-15 04:00:57 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-11-16 00:15:23 +0000 |
| commit | 7b57302c272250e15e3d01596bf352cc206cfe3d (patch) | |
| tree | 6cb54ee30197d0001d3d9c9d24faa9f390756390 /.github/workflows/upload.yaml | |
| parent | 7785ed59a650183b93c8b4534b1ebbb2e64e2f84 (diff) | |
actions: upload mutli arch docker images
Diffstat (limited to '.github/workflows/upload.yaml')
| -rw-r--r-- | .github/workflows/upload.yaml | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/.github/workflows/upload.yaml b/.github/workflows/upload.yaml deleted file mode 100644 index 26f366a..0000000 --- a/.github/workflows/upload.yaml +++ /dev/null @@ -1,45 +0,0 @@ -name: upload to registry -# this is for uploading images to a container registry when -# changes are made to `main` - -on: - push: - branches: - - main - workflow_dispatch: - -jobs: - upload: - runs-on: ubuntu-latest - - permissions: - packages: write - - env: - REGISTRY: ghcr.io - USERNAME: getchoo - - steps: - - uses: actions/checkout@v4 - - uses: DeterminateSystems/nix-installer-action@main - - uses: DeterminateSystems/magic-nix-cache-action@main - - - name: fetch docker image - run: | - nix build --accept-flake-config -L .#container - readlink result | xargs -I {} cp {} teawiebot.tar.gz - - - name: login to registry - uses: docker/login-action@v3 - with: - registry: ${{ env.REGISTRY }} - username: ${{ env.USERNAME }} - password: ${{ github.token }} - - - name: upload to registry - env: - PUSH_PREFIX: ${{ env.REGISTRY }}/${{ env.USERNAME }} - run: | - docker load < teawiebot.tar.gz - docker tag teawiebot:latest ${{ env.PUSH_PREFIX }}/teawiebot:latest - docker push ${{ env.PUSH_PREFIX }}/teawiebot:latest |
