Skip to content

Commit

Permalink
⬆️ Bumped dependency versions, minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ThijmenGThN authored Jul 24, 2024
2 parents e1ae1d9 + 0248716 commit 929c59c
Show file tree
Hide file tree
Showing 6 changed files with 267 additions and 94 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/edge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ on:

jobs:
recycle:
name: Recycle Edge Image
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Recycle Edge Image
uses: rafalkk/remove-dockertag-action@v1
with:
tag_name: edge
github_token: ${{ secrets.GH_PAT }}
- uses: chipkent/[email protected]
with:
tag: edge
github-token: ${{ secrets.GH_PAT }}
package-name: ${{ github.event.repository.name }}

publish:
name: Publish
runs-on: ubuntu-latest
needs: [recycle]
steps:
- uses: actions/checkout@v3
- name: Publish
run: |
- run: |
docker login --username thijmengthn --password ${{ secrets.GH_PAT }} ghcr.io
docker build . --tag ghcr.io/thijmengthn/swaparr:edge --label "org.opencontainers.image.source=https://github.com/ThijmenGThN/swaparr" --label "org.opencontainers.image.description=This image of Swaparr is based on 'edge', the unstable release branch." --label "org.opencontainers.image.licenses=MIT"
docker build . --tag ghcr.io/thijmengthn/swaparr:edge --label "org.opencontainers.image.source=https://github.com/thijmengthn/swaparr" --label "org.opencontainers.image.description=This image of Swaparr is based on 'edge', the unstable release branch." --label "org.opencontainers.image.licenses=MIT"
docker push ghcr.io/thijmengthn/swaparr:edge
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ on:

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get version
id: get_version

- id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Publish
run: |
- run: |
docker login --username thijmengthn --password ${{ secrets.GH_PAT }} ghcr.io
docker build . --tag ghcr.io/thijmengthn/swaparr:latest --tag ghcr.io/thijmengthn/swaparr:${{ steps.get_version.outputs.VERSION }} --label "org.opencontainers.image.source=https://github.com/ThijmenGThN/swaparr" --label "org.opencontainers.image.description=This image of Swaparr is based on 'main', the stable release branch." --label "org.opencontainers.image.licenses=MIT"
docker push ghcr.io/thijmengthn/swaparr:latest
Expand Down
Loading

0 comments on commit 929c59c

Please sign in to comment.