Compare commits
2 commits
d28cc72d91
...
42b3571dd6
Author | SHA1 | Date | |
---|---|---|---|
42b3571dd6 | |||
7251927e93 |
1 changed files with 28 additions and 17 deletions
|
@ -12,24 +12,35 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set repository name to lowercase
|
||||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
- name: Deploy to OCI Registry
|
||||
uses: https://git.smgames.club/SevenOfAces/PublishImage
|
||||
with:
|
||||
registry-url: 'git.smgames.club'
|
||||
registry-token: ${{ secrets.DOCKER_TOKEN }}
|
||||
architectures: 'amd64,arm64'
|
||||
tags: 'latest'
|
||||
name: 'auto'
|
||||
dockerfile: './Dockerfile'
|
||||
owner: 'SevenOfAces'
|
||||
|
||||
- name: Set up Docker
|
||||
uses: https://github.com/docker-practice/actions-setup-docker@master
|
||||
timeout-minutes: 12
|
||||
# - name: Set repository name to lowercase
|
||||
# run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
# - name: Set up Docker
|
||||
# uses: https://github.com/docker-practice/actions-setup-docker@master
|
||||
# timeout-minutes: 12
|
||||
|
||||
- name: Authenticate with registry
|
||||
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
||||
# - name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push multi-architecture Docker image
|
||||
run: |
|
||||
docker buildx create --use
|
||||
docker buildx build \
|
||||
--platform linux/amd64,linux/arm64 \
|
||||
--tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
||||
--push \
|
||||
.
|
||||
# - name: Authenticate with registry
|
||||
# run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
||||
|
||||
# - name: Build and push multi-architecture Docker image
|
||||
# run: |
|
||||
# docker buildx create --use
|
||||
# docker buildx build \
|
||||
# --platform linux/amd64,linux/arm64 \
|
||||
# --tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
||||
# --push \
|
||||
# .
|
||||
|
|
Loading…
Add table
Reference in a new issue