test workflow build and push on gitea registry
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 11s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 11s
This commit is contained in:
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@@ -9,14 +9,6 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build_and_push:
|
build_and_push:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
|
|
||||||
services:
|
|
||||||
my_docker:
|
|
||||||
image: ghcr.io/catthehacker/ubuntu:act-latest
|
|
||||||
ports:
|
|
||||||
- 2367:2367
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@@ -51,9 +43,18 @@ jobs:
|
|||||||
# run: |
|
# run: |
|
||||||
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}"
|
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}"
|
||||||
|
|
||||||
- name: Build and push Docker image
|
# - name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v2
|
# uses: docker/build-push-action@v2
|
||||||
with:
|
# with:
|
||||||
context: "{{defaultContext}}"
|
# context: "{{defaultContext}}"
|
||||||
push: true
|
# push: true
|
||||||
tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test"
|
# tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test"
|
||||||
|
- name: Build and Push Docker Image
|
||||||
|
run: |
|
||||||
|
docker buildx build \
|
||||||
|
--platform linux/amd64,linux/arm64 \
|
||||||
|
--build-arg ACCESS_TOKEN_USR=ncaron\
|
||||||
|
--build-arg ACCESS_TOKEN_PWD=6744954b4a3a43422e62e8d110f90de527ce094d \
|
||||||
|
--tag git.coopgo.io/coopgo-platform/mobility-accounts:test \
|
||||||
|
--push .
|
||||||
|
working-directory: /work
|
||||||
Reference in New Issue
Block a user