Trying to fix push action
Some checks failed
Docker image build / Build docker image (push) Failing after 37s
Some checks failed
Docker image build / Build docker image (push) Failing after 37s
This commit is contained in:
parent
57c125d3dd
commit
233393fc80
8
.github/workflows/build-docker-image.yaml
vendored
8
.github/workflows/build-docker-image.yaml
vendored
@ -21,10 +21,6 @@ jobs:
|
|||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build test-app
|
|
||||||
run: make build
|
|
||||||
working-directory: app
|
|
||||||
|
|
||||||
- name: Login to Gitea
|
- name: Login to Gitea
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@ -33,6 +29,10 @@ jobs:
|
|||||||
username: just_a_test
|
username: just_a_test
|
||||||
password: ${{ secrets.GIT_REGISTRY_PASSWORD }}
|
password: ${{ secrets.GIT_REGISTRY_PASSWORD }}
|
||||||
|
|
||||||
|
- name: Build test-app
|
||||||
|
run: make build
|
||||||
|
working-directory: app
|
||||||
|
|
||||||
- name: Publish test-app
|
- name: Publish test-app
|
||||||
run: make publish
|
run: make publish
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push'
|
||||||
|
@ -11,7 +11,7 @@ start: $(GOBIN)/air
|
|||||||
$(GOBIN)/air
|
$(GOBIN)/air
|
||||||
|
|
||||||
build:
|
build:
|
||||||
docker build . --tag daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
|
docker build . --tag --push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
|
docker push daemongit.dyndns.info/just_a_test/devops-test-app:$(version)
|
||||||
|
Loading…
Reference in New Issue
Block a user