test workflow build and push on gitea registry
Build and Push Docker Image / build_and_push (push) Failing after 11s Details

This commit is contained in:
Nicolas CARON 2024-03-13 11:23:49 +01:00
parent cc4629bbbd
commit 255edf3390
1 changed files with 15 additions and 14 deletions

View File

@ -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