Skip to content

Commit

Permalink
build and publish docker images through github CI (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
booniepepper authored Apr 23, 2024
1 parent a57e412 commit 68fabd3
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,3 +151,28 @@ jobs:
--certificate-oidc-issuer https://token.actions.githubusercontent.com \
--certificate-identity-regexp '^https://github.com/slsa-framework/slsa-github-generator/.github/workflows/generator_container_slsa3.yml@refs/tags/v[0-9]+.[0-9]+.[0-9]+$' \
$IMAGE@$DIGEST
docker-publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build Image
run: |
cp .docker/Dockerfile .
docker buildx build -t "refaktor/rye:latest" .
docker buildx build -t "refaktor/rye:${GITHUB_REF_NAME}" .
- name: Release
run: |
docker push "refaktor/rye:latest"
docker push "refaktor/rye:${GITHUB_REF_NAME}"

0 comments on commit 68fabd3

Please sign in to comment.