mirror of https://gitea.com/gitea/test-env.git
push test
This commit is contained in:
parent
1fe1942424
commit
dc425c685a
|
@ -8,7 +8,7 @@ jobs:
|
||||||
docker:
|
docker:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
arch: ['ubuntu-latest', 'arm-ubuntu-latest']
|
arch: ['ubuntu-latest']
|
||||||
go-version: ['1.20']
|
go-version: ['1.20']
|
||||||
git-version: ['2.38.4']
|
git-version: ['2.38.4']
|
||||||
golangci-lint-version: ['1.51.2']
|
golangci-lint-version: ['1.51.2']
|
||||||
|
@ -25,15 +25,21 @@ jobs:
|
||||||
id: arch
|
id: arch
|
||||||
- name: setup buildx
|
- name: setup buildx
|
||||||
uses: https://github.com/docker/setup-buildx-action@v2
|
uses: https://github.com/docker/setup-buildx-action@v2
|
||||||
- name: Login to Docker Hub
|
- name: login into docker hub
|
||||||
uses: https://github.com/docker/login-action@v2
|
run: |
|
||||||
with:
|
BASE64_AUTH=`echo -n "$CI_REGISTRY_USER:$CI_REGISTRY_PASSWORD" | base64`
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
mkdir -p ~/.docker
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
echo "{\"auths\": {\"$CI_REGISTRY\": {\"auth\": \"$BASE64_AUTH\"}}}" > ~/.docker/config.json
|
||||||
|
env:
|
||||||
|
CI_REGISTRY: https://index.docker.io/v1/
|
||||||
|
CI_REGISTRY_USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
CI_REGISTRY_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: build image
|
- name: build image
|
||||||
uses: https://github.com/docker/build-push-action@v4
|
uses: https://github.com/docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
tags: gitea/test_env:linux-${{ matrix.go-version }}-${{ steps.arch.outputs.value }}
|
push: true
|
||||||
|
platforms: linux/amd64,linux/arm64
|
||||||
|
tags: gitea/test_env:linux-${{ matrix.go-version }}
|
||||||
build-args: |
|
build-args: |
|
||||||
GOLANG_VERSION=${{ matrix.go-version }}
|
GOLANG_VERSION=${{ matrix.go-version }}
|
||||||
GIT_VERSION=${{ matrix.git-version }}
|
GIT_VERSION=${{ matrix.git-version }}
|
||||||
|
|
Loading…
Reference in New Issue