Skip to content

Commit

Permalink
remove releases to docker hub
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gilber committed Oct 30, 2023
1 parent 994a8fc commit 80b162c
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
- main # When `latest` image tag is published when default branch is updated
- use-docker-hub-as-test-registry # for testing
tags:
- 'v*' # When a tag starting with `v` is created e.g. v1.0.0

Expand All @@ -23,21 +24,13 @@ jobs:
permissions:
packages: write
contents: read
environment: docker-hub # Use `docker-hub` repository environment
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 # https://github.com/marketplace/actions/docker-setup-build

- name: Log in to Docker Hub
uses: docker/login-action@v3 # https://github.com/marketplace/actions/docker-login
with:
registry: ${{ vars.DOCKER_REGISTRY_URL }}
username: ${{ secrets.DOCKER_REGISTRY_USERNAME }}
password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}

- name: Log in to the Container registry
uses: docker/login-action@v3 # https://github.com/marketplace/actions/docker-login
with:
Expand All @@ -50,7 +43,6 @@ jobs:
uses: docker/metadata-action@v5 # https://github.com/marketplace/actions/docker-metadata-action
with:
images: |
${{ vars.DOCKER_REGISTRY_URL }}/${{ vars.DOCKER_REPOSITORY }}/${{ env.PROJECT }}
ghcr.io/${{ github.repository }}
tags: |
# set latest tag for default branch
Expand Down

0 comments on commit 80b162c

Please sign in to comment.