test workflow build and push on gitea registry
Build and Push Docker Image / build_and_push (push) Failing after 16s
Details
Build and Push Docker Image / build_and_push (push) Failing after 16s
Details
This commit is contained in:
parent
d15a8be61a
commit
dba7d992d4
|
@ -16,10 +16,18 @@ jobs:
|
|||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Install Docker
|
||||
- name: 'install docker-ce-cli'
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y docker.io
|
||||
install -m 0755 -d /etc/apt/keyrings
|
||||
curl -fsSL https://download.docker.com/linux/debian/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
||||
chmod a+r /etc/apt/keyrings/docker.gpg
|
||||
echo \
|
||||
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \
|
||||
"$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \
|
||||
tee /etc/apt/sources.list.d/docker.list > /dev/null
|
||||
apt-get update
|
||||
apt-get install -y docker-ce-cli docker-compose-plugin
|
||||
|
||||
- name: Login to Docker Registry
|
||||
uses: docker/login-action@v2
|
||||
|
@ -35,8 +43,8 @@ jobs:
|
|||
docker buildx build --platform linux/amd64,linux/arm64 -t git.coopgo.io/coopgo-platform/mobility-accounts:test .
|
||||
docker push git.coopgo.io/coopgo-platform/mobility-accounts:test
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
# - name: Set up Docker Buildx
|
||||
# uses: docker/setup-buildx-action@v2
|
||||
|
||||
# - name: Get Gitea Tags
|
||||
# id: get_tags
|
||||
|
@ -50,9 +58,9 @@ jobs:
|
|||
# run: |
|
||||
# echo "Latest tag found: ${{ steps.get_tags.outputs.latest_tag }}"
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: "{{defaultContext}}"
|
||||
push: true
|
||||
tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test"
|
||||
# - name: Build and push Docker image
|
||||
# uses: docker/build-push-action@v2
|
||||
# with:
|
||||
# context: "{{defaultContext}}"
|
||||
# push: true
|
||||
# tags: "git.coopgo.io/coopgo-platform/mobility-accounts:test"
|
||||
|
|
Loading…
Reference in New Issue