-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switching to dockerhub, coz where is dat image?
- Loading branch information
Christian Fufezan
committed
Apr 30, 2024
1 parent
2fe5bd9
commit 6929616
Showing
2 changed files
with
93 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
# name: Build and Push Docker image | ||
|
||
# on: | ||
# push: | ||
# tags: | ||
# - 'v*' # Trigger workflow only on tags that start with 'v' | ||
|
||
# jobs: | ||
# build-and-push: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - name: Check out the repo | ||
# uses: actions/checkout@v2 | ||
name: Build and Push Docker image | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' # Trigger workflow only on tags that start with 'v' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.10' | ||
|
||
# - name: Install hatch | ||
# run: pip install hatch | ||
|
||
# - name: Extract version using Hatch | ||
# id: get_version | ||
# run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV | ||
|
||
# - name: Login to Docker Hub | ||
# uses: docker/login-action@v3 | ||
# with: | ||
# username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
# password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v1 | ||
|
||
# - name: Build and push Docker image | ||
# uses: docker/build-push-action@v2 | ||
# with: | ||
# context: . | ||
# file: ./Dockerfile | ||
# push: true | ||
# tags: zerealfu/fass:${{ env.VERSION }} | ||
|
||
# - name: Image digest | ||
# run: echo ${{ steps.docker_build.outputs.digest }} | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Extract version using Hatch | ||
id: get_version | ||
run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_PASSWORD }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: zerealfu/fass:${{ env.VERSION }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,50 @@ | ||
name: Build and Push Docker image to GHCR | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build-and-push: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Check out the repo | ||
uses: actions/checkout@v2 | ||
# name: Build and Push Docker image to GHCR | ||
|
||
# on: | ||
# push: | ||
# tags: | ||
# - 'v*' | ||
|
||
# jobs: | ||
# build-and-push: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# packages: write | ||
|
||
# steps: | ||
# - name: Check out the repo | ||
# uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install hatch | ||
run: pip install hatch | ||
|
||
- name: Extract version using Hatch | ||
id: get_version | ||
run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV | ||
|
||
- name: Log in to GitHub Container Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GTOKEN }} | ||
|
||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v1 | ||
|
||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v2 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ghcr.io/${{ github.repository }}/fass:${{ env.VERSION }} | ||
|
||
- name: Image digest | ||
run: echo ${{ steps.docker_build.outputs.digest }} | ||
# - name: Set up Python | ||
# uses: actions/setup-python@v2 | ||
# with: | ||
# python-version: '3.10' | ||
|
||
# - name: Install hatch | ||
# run: pip install hatch | ||
|
||
# - name: Extract version using Hatch | ||
# id: get_version | ||
# run: echo "VERSION=$(hatch version)" >> $GITHUB_ENV | ||
|
||
# - name: Log in to GitHub Container Registry | ||
# uses: docker/login-action@v1 | ||
# with: | ||
# registry: ghcr.io | ||
# username: ${{ github.repository_owner }} | ||
# password: ${{ secrets.GTOKEN }} | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v1 | ||
|
||
# - name: Build and push Docker image | ||
# uses: docker/build-push-action@v2 | ||
# with: | ||
# context: . | ||
# file: ./Dockerfile | ||
# push: true | ||
# tags: ghcr.io/${{ github.repository }}/fass:${{ env.VERSION }} | ||
|
||
# - name: Image digest | ||
# run: echo ${{ steps.docker_build.outputs.digest }} |