Skip to content

Commit 0accb1e

Browse files
test
1 parent 6d24a50 commit 0accb1e

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

.github/workflows/docker.yaml

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Build and push Docker image to docker hub
22
on:
33
push:
4-
# Sequence of patterns matched against refs/heads
54
branches:
65
- master
76
- hotfix-update
@@ -10,16 +9,22 @@ on:
109
jobs:
1110
build-and-push:
1211
name: BuildAndPush
13-
runs-on: alpine-latest
12+
runs-on: ubuntu-latest
1413
steps:
15-
# This step uses Github's checkout-action: https://github.com/actions/checkout
16-
- uses: actions/checkout@v2
14+
- uses: actions/checkout@v3
1715

18-
# This step uses Docker's build-push-action: https://github.com/docker/build-push-action
19-
- name: Build and push Docker image to docker hub
20-
uses: docker/build-push-action@v1.1.0
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v2
18+
19+
- name: Login to Docker Hub
20+
uses: docker/login-action@v2
2121
with:
2222
username: ${{ secrets.DOCKER_USERNAME }}
2323
password: ${{ secrets.DOCKER_PASSWORD }}
24-
repository: quortexio/deployment-tools
25-
tag_with_ref: true
24+
25+
- name: Build and push
26+
uses: docker/build-push-action@v4
27+
with:
28+
context: .
29+
push: true
30+
tags: ${{ secrets.DOCKER_USERNAME }}/quortexio/deployment-tools:1.4.1

0 commit comments

Comments
 (0)