Skip to content

Commit

Permalink
updated release and master workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmoonl1ght94 committed Jan 31, 2024
1 parent 6cbb752 commit 08b7506
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ jobs:
build:
runs-on: ubuntu-latest
permissions: # TODO remove when public
contents: read
contents: write
packages: write
steps:
- uses: actions/checkout@v4
with:
Expand Down Expand Up @@ -48,6 +49,13 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
if: false # TODO fix for github images
id: docker_build_and_push
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: "Infra: Release"
on:
push:
branches:
- infra/replace_docker_hub_images_with_github_packages
# release:
# types: [published]
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
permissions: # TODO remove when public
contents: read
contents: write
packages: write
outputs:
version: ${{steps.build.outputs.version}}
steps:
Expand Down

0 comments on commit 08b7506

Please sign in to comment.