. #23
1 changed files with 28 additions and 17 deletions
|
@ -12,24 +12,35 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Set repository name to lowercase
|
- name: Deploy to OCI Registry
|
||||||
run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
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
|
# - name: Set repository name to lowercase
|
||||||
uses: https://github.com/docker-practice/actions-setup-docker@master
|
# run: echo "REPO_NAME=$(echo ${{ github.repository }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
|
||||||
timeout-minutes: 12
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
# - name: Set up Docker
|
||||||
uses: docker/setup-buildx-action@v3
|
# uses: https://github.com/docker-practice/actions-setup-docker@master
|
||||||
|
# timeout-minutes: 12
|
||||||
|
|
||||||
- name: Authenticate with registry
|
# - name: Set up Docker Buildx
|
||||||
run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
# uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build and push multi-architecture Docker image
|
# - name: Authenticate with registry
|
||||||
run: |
|
# run: docker login git.smgames.club -u ${{ github.repository_owner }} -p ${{ secrets.DOCKER_TOKEN }}
|
||||||
docker buildx create --use
|
|
||||||
docker buildx build \
|
# - name: Build and push multi-architecture Docker image
|
||||||
--platform linux/amd64,linux/arm64 \
|
# run: |
|
||||||
--tag git.smgames.club/${{ env.REPO_NAME }}:latest \
|
# docker buildx create --use
|
||||||
--push \
|
# 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